// 平台属性及属性值的接口
export interface IAttr {
  attrId: number;
  attrName: string;
  id: number;
  skuId: number;
  valueId: number;
  valueName: string;
}

export type IAttrList = IAttr[];

// sku图片的接口
export interface IImage {
  id: number;
  imgName: string;
  imgUrl: string;
  isDefault: string;
  skuId: number;
  spuImgId: number;
}

export type IImageList = IImage[];

// 销售属性及属性值的接口
export interface ISaleAttr {
  id: number;
  saleAttrId: number;
  saleAttrName: string;
  saleAttrValueId: number;
  saleAttrValueName: string;
  skuId: number;
  spuId: number;
}

export type ISaleAttrList = ISaleAttr[]
// sku数据列表的接口口
export interface ISku {
  category3Id?: number;
  createTime: string;
  id?: number;
  isSale: number;
  price: number;
  skuAttrValueList: null | IAttrList;
  skuDefaultImg: string;
  skuDesc: string;
  skuImageList: null | IImageList;
  skuName: string;
  skuSaleAttrValueList: null | ISaleAttrList;
  spuId?: number;
  tmId?: number;
  weight: number | string;
}

export interface ISkuList {
  records: ISku[];
  total: number;
}
